package d01007;

public class PersonTest {
    public static void main(String[] args){
        //创建两个Person对象
        Person p1=new Person("小明",24,"男");
        Person p2=new Person("小王",20,"女");
        String info=p1.marry(p2);
        System.out.println(info);

        Person p3=new Person("小李",20,"女");

        info=p1.marry(p3);
        System.out.println(info);
        //离婚
        System.out.println(p1.divoce(p2));

        info=p1.marry(p3);
        System.out.println(info);

    }
}
